/*
 * Copyright 2010-2013 Susanta Tewari. <freecode4susant@users.sourceforge.net>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package sampledata.genomemap.data;

import commons.nb.data.DNData;
import commons.nb.data.DNDataList_DirExt;

import java.io.File;

/**
 * @since since
 * @version version
 * @author Susanta Tewari
 * @history Created on 7/18/13.
 */
public class DNDataList_DirExt_s {

    /**
     *
     */
    public static class AssignmentData_csv extends DNDataList_DirExt<DNData_FileBased_AssignmentData> {

        public AssignmentData_csv() {

            super("Assignment Data", "genomemap/data/assignment", "genomemap.sampledata", ".csv",
                  "sampledata/genomemap/data/AssignmentData16.png");
        }

        @Override
        protected DNData_FileBased_AssignmentData of_DNData(final File file) {

            final String shortDescription = "Assignment Data in CSV format";

            return new DNData_FileBased_AssignmentData.CSV(file.getName(), shortDescription,
                    file.getAbsolutePath());
        }
    }

    /**
     *
     */
    public static class KSA00Data_xml extends DNDataList_DirExt<DNData_FileBased_KSA00Data> {

        public KSA00Data_xml() {

            super("KSA00 Data", "genomemap/data/ksa00", "genomemap.sampledata", ".xml",
                  "sampledata/genomemap/data/KSA00Data16.png");
        }

        @Override
        protected DNData_FileBased_KSA00Data of_DNData(final File file) {

            final String shortDescription = "Data for Model KSA00 in XML format";

            return new DNData_FileBased_KSA00Data.XML(file.getName(), shortDescription,
                    file.getAbsolutePath());
        }
    }

    /**
     *
     */
    public static class StringList
            extends commons.nb.data.DNDataList_DirExt_s.DNDataList_DirBased_StringList {

        public StringList() {
            super("StringList Data", "genomemap/data/stringlist", "genomemap.sampledata");
        }
    }

    /**
     *
     */
    public static class StringList2
            extends commons.nb.data.DNDataList_DirExt_s.DNDataList_DirBased_StringList2 {

        public StringList2() {
            super("StringList2 Data", "genomemap/data/stringlist2", "genomemap.sampledata");
        }
    }

    /**
     * @version version
     * @since since
     * @history Created on 07/18/2013
     * @author Susanta Tewari
     */
    public static class TAB08Data_xml extends DNDataList_DirExt<DNData_FileBased_TAB08Data> {

        public TAB08Data_xml() {

            super("TAB08 Data", "genomemap/data/tab08", "genomemap.sampledata", ".xml",
                  "sampledata/genomemap/data/TAB08Data16.png");
        }

        @Override
        protected DNData_FileBased_TAB08Data of_DNData(final File file) {

            final String shortDescription = "Data for Model TAB08 in XML format";

            return new DNData_FileBased_TAB08Data.XML(file.getName(), shortDescription,
                    file.getAbsolutePath());
        }
    }
}
